import { request, config } from 'utils'

const { api } = config
const {
  cmrOverviewInfo,
  crmVillageleakQuery,
  reportWaterUse,
  ScadeDivisionCopyrate,
  ScadaRealtimetemplateQuery,
  crmMaxGetaccount,
  ScadeStationAlarm,
  crmRealtimeWater3,
  crmRealtimeMeter3,
} = api

export function queryOverviewInfo(data) {
  return request({ url: cmrOverviewInfo, data, method: 'post' })
}

export function queryVillageleak(data) {
  return request({ url:crmVillageleakQuery, data, method: 'post' })
}

export function querySellWater(params) {
  return request({ url: reportWaterUse, params })
}

export function queryDivisionCopyrate(data) {
  return request({ url: ScadeDivisionCopyrate, data, method: 'post' })
}

export function queryScadaTpl(data) {
  return request({ url:ScadaRealtimetemplateQuery, data, method: 'post' })
}

export function queryMaxAccount(params) {
  return request({ url:crmMaxGetaccount, params })
}

export function queryStationAlarm(data) {
  return request({ url: ScadeStationAlarm, data, method: 'post' })
}

export function queryRealtimeWater3(data) {
  return request({ url: crmRealtimeWater3, data, method: 'post' })
}

export function queryRealtimeMeter3(data) {
  return request({ url: crmRealtimeMeter3, data, method: 'post' })
}